package com.cloudwise.service.impl;

import com.cloudwise.dao.EmpDao;
import com.cloudwise.entity.Emp;
import com.cloudwise.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2021/11/18 10:43
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class EmpServiceImpl  implements EmpService {
    @Autowired
    EmpDao empDao ;
    @Override
    public List<Emp> findAllEmp() {
        return empDao.findAllEmpEntity();
    }

    @Override
    public boolean deleteEmpById(Integer empno) {
        return empDao.deleteEmpById(empno);
    }
}
